package com.lej.dataservice.club.bean.main.community

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

/**
 * Created by Administrator on 2020-03-18
 */
data class CommunityItemInfo(
    var photoid: String?,
    var type: String?,//0照片 1视频
    var uid: String?,
    var roomid: String?,
    var self: Int?,//0未知 1非本人 2本人
    var width: Int,
    var height: Int,
    var real: Int?,//是否真颜
    var photourl: String?,
    var gif_url: String?,//gif图片地址
    var videourl: String?,
    var photodesc: String?,
    var distance: String?,
    var nick: String?,
    var avatar: String?
)

@Parcelize
data class ChatRoomInfo(var photoid: String?, var roomid: String?) : Parcelable

fun CommunityItemInfo.toChatRoomInfo() = ChatRoomInfo(photoid = photoid, roomid = roomid)